#ifndef SUBWINDOW_H
#define SUBWINDOW_H

#include <QWidget>
#include<QSizeGrip>
#include<QVBoxLayout>
#include<QTextEdit>

class SubWindow : public QWidget
{
    Q_OBJECT
public:
    SubWindow(QWidget *parent = nullptr){
        QSizeGrip *sizeGrip = new QSizeGrip(this);
        sizeGrip->setFixedSize(sizeGrip->sizeHint());

        this->setLayout(new QVBoxLayout);
        this->layout()->setMargin(0);
        layout()->addWidget(new QTextEdit);

        sizeGrip->setWindowFlags(Qt::WindowStaysOnTopHint);
        sizeGrip->raise();


    }

    QSize sizeHint() const override{
        return QSize(200,100);
    }

signals:

};

#endif // SUBWINDOW_H
